package server.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blood_discard_review
 * @author Galaxy
 */
@TableName(value ="blood_discard_review")
@Data
public class BloodDiscardReview implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 血液报废申请单信息
     */
    @TableField(value = "blood_discard_id")
    private String bloodDiscardId;

    /**
     * 血液报废申请人工号
     */
    @TableField(value = "applicant_id")
    private String applicantId;

    /**
     * 血液报废申请时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 审核人工号
     */
    @TableField(value = "reviewer_id")
    private String reviewerId;

    /**
     * 审核时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "review_time")
    private Date reviewTime;

    /**
     * 血液报废驳回原因
     */
    @TableField(value = "reject_reason")
    private String rejectReason;

    /**
     * 状态（等待审核、通过、驳回、驳回已处理）
     */
    @TableField(value = "state")
    private String state;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = -1240463435580547694L;
}